package gui;

import javax.swing.*;
import java.awt.*;
import java.util.*;

public class MyGlassPane extends JComponent{
	private static final long serialVersionUID = 1L;
	private Font font = new Font("Arial", Font.PLAIN, 30);
	private int number = 100;
	
	public MyGlassPane(){
		super();
	}
	
	public void setText(int number){
		this.number = number;
	}
	
	public void paintComponent(Graphics g){
	    Graphics2D g2d = (Graphics2D)g;
	    g2d.setFont(font);
	    g2d.setColor(Color.BLUE);
	    g2d.drawString("-"+number+"-", 745, 85);
	}
}
